package com.cosina.game.crystallight.model.battle;


import android.graphics.Point;

public class BattleFieldProxy {
	
	public static final int BEGIN_ID = 0;
	public static final int LAST_ID = 39;
	
	public  final int id;
	public  final int[] requireds;
	
	public final String name;
	public final int glodenScore;
	/**
	 * 0 1 2 3
	 */
	public final int belongmap;
	public final Point location;
	public static final int ROUND_TOP_STYLE = 0;
	public static final int FLAT_TOP_STYLE = 1;
	public final int style;
	
	public BattleFieldProxy(int id,String name, int[] requireds,int belongmap, int leftTopx,int leftTopy,int style,int glodenScore){
		this.id = id;
		this.name = name;
		this.requireds = requireds;
		this.belongmap = belongmap;
		this.location = new Point(leftTopx,leftTopy);
		this.style = style;
		this.glodenScore = glodenScore;
	}
	
	public boolean isFirst(){
		return this.id == BEGIN_ID;
	}

	public int getWaveCount() {
		return BattleFieldFactory.getWaveCount(id);
	}
}
